#include <jni.h>

#ifndef LYNANDROIDPROJECT_NV21_H
#define LYNANDROIDPROJECT_NV21_H
#endif //LYNANDROIDPROJECT_NV21_H

extern "C"
JNIEXPORT void JNICALL
Java_com_lyn_nv21_Nv21_toBitmap(JNIEnv *env, jobject thiz, jobject bitmap, jbyteArray out_nv21);

extern "C"
JNIEXPORT void JNICALL
Java_com_lyn_nv21_Nv21_toRgb(JNIEnv *env, jobject thiz, jbyteArray src_nv21, jint src_nv21_width,
                             jint src_nv21_height, jintArray out_rgb, jboolean is_rgb);
extern "C"
JNIEXPORT void JNICALL
Java_com_lyn_nv21_Nv21_clip(JNIEnv *env, jobject thiz, jbyteArray src_nv21, jint src_nv21_width,
                            jint src_nv21_height, jbyteArray out_nv21, jint out_nv21_left,
                            jint out_nv21_top, jint out_nv21_with, jint out_nv21_height);
extern "C"
JNIEXPORT void JNICALL
Java_com_lyn_nv21_Nv21_mirror(JNIEnv *env, jobject thiz, jbyteArray src_nv21, jint src_nv21_width,
                              jint src_nv21_height);
extern "C"
JNIEXPORT void JNICALL
Java_com_lyn_nv21_Nv21_rotate(JNIEnv *env, jobject thiz, jbyteArray src_nv21, jint src_nv21_width,
                              jint src_nv21_height, jbyteArray out_nv21, jint angle);


